package com.px.service;

import com.px.pojo.ShComment;

import java.util.List;

public interface ShCommentService {

    //获取评论列表
    List<ShComment> selectShCommentList(Integer commentType,
                                        Integer commodityId,
                                        Integer userId,
                                        Integer currentPageNo, Integer pageSize)throws Exception;

    //获取评论记录数
    int selectShCommentCount(Integer commentType,
                             Integer commodityId,
                             Integer userId)throws Exception;

    //获取评论信息
    ShComment selectShComment(Integer commentId)throws Exception;

    //添加评论信息
    int insertShComment(ShComment shComment)throws Exception;

    //更新评论信息
    int updateShComment(ShComment shComment)throws Exception;

    //删除评论信息
    int deleteShComment(Integer id)throws Exception;
}
